#ifndef MYTHR_ONE_PICTURE_H
#define MYTHR_ONE_PICTURE_H

#include <QThread>
extern "C" {
    #include <libavcodec/avcodec.h>
    #include <libavformat/avformat.h>
    #include <libswscale/swscale.h>
    #include <libavdevice/avdevice.h>
    #include <libavformat/version.h>
    #include <libavutil/time.h>
    #include <libavutil/mathematics.h>
}
#include<qdebug.h>
#include<qfiledialog.h>
#include<qwidget.h>
#include<QPainter>
#include<QBrush>
#include<QColor>
#include<QObject>
#include<QImage>
#include<QPainter>
#include<QPen>
#include<QFont>
#include<QFile>

class mythr_one_picture : public QThread
{
    Q_OBJECT
public:
    explicit mythr_one_picture(QObject *parent = nullptr);
    void setother(QImage img,QString outfilename,double time);

protected:
    void run() override;

signals:

    void signal_time(double time);
private:
    QImage img;
    QString outFilename;
    double timelength;

    int height,width;
    double cru_time;

};

#endif // MYTHR_ONE_PICTURE_H
